//
//  CustomAnnotationView.h
//  CustomAnnotationDemo
//
//  Created by songjian on 13-3-11.
//  Copyright (c) 2013年 songjian. All rights reserved.
//

@import UIKit;
#import <MapKit/MapKit.h>

#define kWidth  64.f
#define kHeight 64.f

#define kHoriMargin 2.f
#define kVertMargin 2.f

#define kPortraitWidth  64.f
#define kPortraitHeight 64.f

#define sWidth  44.f
#define sHeight 44.f

#define kGroupWidth  120.f
typedef void(^ CustomAnnotationClickBlock)(void);

@interface CustomAnnotationView : MKAnnotationView

@property (nonatomic, strong) UIImageView *view;
@property (nonatomic, strong) CALayer *viewLayer;
@property (nonatomic, strong) UIView *groupView;
@property (nonatomic, strong) UIView *calloutView;
@property (nonatomic, strong) UIImageView *heading;
@property (nonatomic, strong) UIView *locationCircle;
@property (nonatomic, strong) UIImageView *portraitImageView;
//@property (nonatomic, strong) UILabel *countLabel;
// 选中状态展示
@property (nonatomic, strong) UIView *selView;
@property (nonatomic, strong) UIImageView *batteyImg;
@property (nonatomic, strong) UILabel *battey;
@property (nonatomic, strong) UILabel *batteyView;
//@property (nonatomic, strong) UIView *activitySmallView;
//@property (nonatomic, strong) UIImageView *activitySmallImg;
// 选中和焦点状态展示
@property (nonatomic, strong) UIView *activityView;
@property (nonatomic, strong) CALayer *activityLayer;
@property (nonatomic, strong) UILabel *activity;
@property (nonatomic, strong) UIView *circle;
@property (nonatomic, strong) UIImageView *activityImg;
@property (nonatomic, strong) UIColor *borderColor;

@property (nonatomic, copy) CustomAnnotationClickBlock CustomAnnotationClickBlock;

- (void)xdx_updateCorWithAngle:(CGFloat)angle Point:(CGPoint)point distance:(CGFloat)distance;
- (void)xdx_resetCorToDefault;

@end
